<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wb="http://open.weibo.com/wb">
<head>
    <meta charset="utf-8">
    <meta name="format-detection" content="telephone=no">
    <title><?php echo $app_info['APP_TITLE'];?>-iPad游戏-izhushou.cn</title>
    <meta name="description" content="<?php echo $app_info['INTRODUCTION'];?>"><!-- Le styles -->
    <link href="/styles/izhu/css/pub.css?20130801" media="screen" rel="stylesheet" type="text/css">
    <link href="/styles/izhu/css/index.css?20130801" media="screen" rel="stylesheet" type="text/css">
    <link href="/styles/izhu/css/img.css?20130801" media="screen" rel="stylesheet" type="text/css">
    <link href="/styles/izhu/css/quit.css?20130801" media="screen" rel="stylesheet" type="text/css">
    <link href="/styles/izhu/css/pagination.css" media="screen" rel="stylesheet" type="text/css">
    <link href="/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon">
    <!-- Scripts -->


    <script type="text/javascript" src="/styles/izhu/js/jquery.js"></script>
    <script type="text/javascript" src="/styles/izhu/js/plugins/livequery/jquery.livequery.js"></script>
    <script type="text/javascript" src="/styles/izhu/js/lazyload.js?20130801"></script>
    <script type="text/javascript" src="/styles/izhu/js/common.js?20130801"></script>
    <script type="text/javascript" src="/styles/izhu/js/iscroll.js"></script>
    <script type="text/javascript" src="/styles/izhu/js/jquery.touchslider.js"></script>
    <script type="text/javascript" src="/styles/izhu/js/plugins/validation/jquery.validate.js"></script>
    <script type="text/javascript" src="/styles/izhu/js/plugins/form/jquery.form.js"></script>
    <script type="text/javascript" src="/styles/izhu/js/plugins/jtemplates/jquery-jtemplates.js"></script>
    <script type="text/javascript" src="/styles/izhu/js/customs/pagination/jquery.pagination.js"></script>
    <script type="text/javascript" src="/styles/izhu/js/customs/artTxtCount/jQuery.artTxtCount.js"></script>
<!--    <script type="text/javascript">
        //&lt;!&ndash;

        //翻页的回调函数
        var pageselectCallback = function(page_id, jq) {
            pageSelector(page_id);
        }

        //定义显示评论列表html
        var pageSelector = function(page_index){
            $.ajax({
                type: "get",
                url: "/application/ajax/getComments",
                data: {page: page_index+1, appId: 'com.trinitigame.callofminibulletdudes', _date:Math.random()},
                beforeSend: function() {
                },
                success:function(responseText, statusText){
                    $("#Comments").setTemplateElement("Template-Comments");
                    $("#Comments").processTemplate(responseText);

                    return true;
                }
            });

            return false;
        }

        //定义翻页导航
        var pageLoader = function(total){
            $("#pagination").pagination(total, {
                first_text: "第一页",
                prev_text: "上一页",
                next_text: "下一页",
                last_text: "最后一页",
                link_to: "#commentStart",
                num_edge_entries: 2,
                num_display_entries: 8,
                callback: pageselectCallback,
                items_per_page: '10'
            });
        }

        //初始化评论总数
        var pageTotal = '11';

        //添加jquery validate 检查是否包含某个字符串的检验方法，如果 value 里包含 string内容，则检查不通过
        jQuery.validator.addMethod("character", function(value, element, string) {
            if (this.optional(element)) {
                return true;
            }
            if (typeof string != 'string') {
                return false;
            }
            result = value.match(string);
            if(result){
                return false;
            }else{
                return true;
            }
        }, "Invalid format.");
        //添加jquery validate 检查最大字数检查的方法 ，如果 value 的长度大于params，则检查不通过
        jQuery.validator.addMethod("maxWords", function(value, element, params) {
            return this.optional(element) || value.length <= params;
        }, jQuery.validator.format("Please enter {0} words or less."));



        $(document).ready(function(){
            var options = {
                type:"POST",
                dataType : "text",
                async : true,
                cache: false,
                global:true,
                beforeSubmit:function(formData, jqForm)
                {
                    //alert('About to submit: \n\n' + $.param(formData));
                    //return true;
                },
                success:function(responseText, statusText)
                {
                    var json = jQuery.parseJSON(responseText);
                    if(json.result != 1){
                        alertBox(json.message);
                        return false;
                    }

                    alertBox(json.message);

                    pageTotal++;
                    pageLoader(pageTotal);
                    $("#commentTotal").html(pageTotal);

                    pageSelector(0);
                    return true;
                }
            };
            jQuery("#mainForm").validate({
                debug: true,
                rules: {
                    content: {
                        required:true,  //必须输入
                        character:"请输入评论内容",	 //如果输入“请输入评论内容”，则检查不通过
                        maxWords:126
                    }
                },
                messages: {
                    content: {
                        required: "请输入评论内容！", //没有输入评论内容时的提示
                        character: "请输入评论内容！", //评论内容输入“请输入评论内容”的提示
                        maxWords: "最多只能输入126个字！"
                    }
                },
                errorPlacement: function(error, element) {
                    var elementName = element.attr("name");
                    var idTip = 'tip-' + elementName;
                    $("#" + idTip).html(error);
                },
                invalidHandler: function(form, validator) {
                    var message = joiner = "";
                    $.each(validator.invalid,function(key,value){
                        message += joiner + value;
                        joiner = "<br />";
                    });
                    alertBox(message);
                },
                success: function(label) {
                    label.addClass("valid").text("输入正确!");
                },
                submitHandler: function(form) {
                    jQuery(form).ajaxSubmit(options);
                    return false;
                }
            });

            //加载翻页按钮，默认加载第一页
            _pageTotal = pageTotal > 0 ? pageTotal : 1;
            pageLoader(_pageTotal);
            //显示评论的总数
            $("#commentTotal").html(pageTotal);

            //默认显示第一页，pagination里的page数比实际小1，所以此处写0
            pageSelector("0");

            //检测评论输入的长度，如果超过设定长度提示超出的字数，并禁止提交
            $('#content').artTxtCount($('.comment-count-tip'), '126');
        });
        //&ndash;&gt;
    </script>-->
</head>
<body>
<script type="text/javascript">
    (function(){
        var useragent=window.navigator.userAgent.toLowerCase();
        if(useragent.indexOf('opera')<0){
            var gbkurl=window.location;
            //如果是第一次访问,跳转页面
            //if(!getCookie("ky_ipad_first")){
            if(0){
                window.location.href="/channel.html?gbkurl="+gbkurl;
            }
        }
    })();
</script>
<div class="top">
    <div class="cetr">
        <div class="logo fl">
            <a href="/ipad_index.php"><img src="/styles/izhu/img/logo.png?1" /></a>
        </div>
        <div class="search fl inline">
            <form id="form1" method="get" action="/ipad_index.php">
                <div class="search_inner">
                    <input type="hidden" name="act" value="search" />
                    <input name="words" type="text" class="s_inpt curr" defaultData="请输入关键字后再进行搜索" value="请输入关键字后再进行搜索" /><!--value值即为默认搜索的东西-->
                    <input type="submit" class="s_btn" value="" />
                </div>
            </form>
        </div>
        <div class="clr"></div>
    </div>
    <div class="top_btt"></div>
</div>
<div class="bl10"></div>



<div class="banner">
    <div class="banner-inner">
        <ul>
            <li><a href="/ipad_index.php">首页</a></li>
            <li <?php if($app_info['GENRE_CAT']<7000){?> class="curr" <?php }?>><a href="/ipad_index.php?act=app_list&type=app">应用</a></li>
            <li <?php if($app_info['GENRE_CAT']>7000){?> class="curr" <?php }?>><a href="/ipad_index.php?act=app_list&type=game">游戏</a></li>
            <li><a href="/ipad_index.php?act=rank&type=app">排行榜</a></li>
        </ul>
        <div class="clr"></div>
    </div>
</div>

<div class="content">
    <div class="con_left">

        <div class="con_left_inner">
            <img onerror="imgErrorIcon(this);" src="<?php echo $app_info['PIC'];?>" alt="无需越狱下载应用" />
            <a href="itms-services://?action=download-manifest&url=<?php echo $app_info['PLIST_URL'];?>" class="kybtn"></a>
            <ul class="app_dets">
                <li><span class="dtit">版&nbsp;&nbsp;&nbsp;&nbsp;本</span>：<span><?php echo $app_info['BUNDLE_VERSION'];?></span></li>
                <li><span class="dtit">大&nbsp;&nbsp;&nbsp;&nbsp;小</span>：<span><?php echo $app_info['APP_SIZE'];?></span></li>
                <li><span class="dtit">下载 量</span>：<span><?php echo $app_info['DOWNLOAD'];?></span></li>
                <li><span class="dtit">时&nbsp;&nbsp;&nbsp;&nbsp;间</span>：<span><?php echo $app_info['I_UPDATE_TIME'];?></span></li>
                <li><span class="dtit">类&nbsp;&nbsp;&nbsp;&nbsp;别</span>：<span><a href="/list/type?device=3&appTag=1&categoryId=<?php echo $app_info['GENRE_CAT'];?>"><?php echo $app_info['GENRE'];?></a></span></li>
                <li><span class="dtit">设&nbsp;&nbsp;&nbsp;&nbsp;备</span>：<span><?php if($_row['SUP_IPHONE']==1) echo 'iPhone/'?>iPad</span></li>
                <li><span class="dtit">系&nbsp;&nbsp;&nbsp;&nbsp;统</span>：<span>iOS <?php echo $app_info['MINIMUM_OS_VERSION'];?></span></li>
            </ul>
        </div>
    </div>

    <div class="con_right">
        <div class="con_t">
            <h2 class="app_name fl"><?php echo $app_info['APP_TITLE'];?></h2>
            <p class="share fr">
                <!-- JiaThis Button BEGIN -->
            <div class="jiathis_style">
                <span class="jiathis_txt">分享到：</span>
                <a class="jiathis_button_icons_1"></a>
                <a class="jiathis_button_icons_2"></a>
                <a class="jiathis_button_icons_3"></a>
                <a class="jiathis_button_icons_4"></a>
            </div>
            <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1352445833103125" charset="utf-8"></script>
            <!-- JiaThis Button END -->
            </p>
            <div class="clr"></div>
        </div>

        <div class="detailPic tab1">
            <dl id="detailPicBox">
                <dd id="scroller">
                    <div id="thelist">
                        <?php foreach($_row['IMGS']['iPad'] as $k=>$v){?>
                            <img src="<?php if(!strstr($v,'http')){ echo 'http://'.$this->url_arr[array_rand($this->url_arr,1)];} echo $v;?>" onerror="imgErrorCommon(this, 'ipad', '<?php echo $t_type;?>');" class="" />
                        <?php }?>
                    </div>
                </dd>
            </dl>
            <div class="scrollbar"><span id="detailDrag" style="display: block; left: 1px;"></span></div>
        </div>
        <script type="text/javascript">
            //iscroll开始
            var myScroll;
            function scr_loaded() {
                var thelist=document.getElementById("scroller"),vwidth=0,
                        thimgs=thelist.getElementsByTagName("img");
                for(var h=0;h<thimgs.length;h++){
                    vwidth+=thimgs[h].offsetWidth;
                }
                thelist.style.width=thimgs.length*14+vwidth+"px";
                myScroll = new iScroll('detailPicBox');
            }
            window.addEventListener('load', scr_loaded, false);
            //document.addEventListener('loaded', scr_loaded, false);
        </script>
        <div class="app_dscript">

            <h6>内容详情</h6>
            <?php echo $app_info['CONTENT'];?>
            <br/>
        </div>

        <div class="clr"></div>
 <!--       <div class="discuss">
            <div class="inner-discuss">
                <h3>网友评论</h3>
                <span class="comment-count-tip"><span class="js_txtCount">还能输入 <strong>126</strong> 个字</span></span>
            </div>
            <form method="post" name="mainForm" id="mainForm" action="/application/ajax/addComment">
                <input type="hidden" name="appId" value="com.trinitigame.callofminibulletdudes" />
                <textarea class="curr blur_empty required" id="content" name="content">请输入评论内容!</textarea>
                <div class="fl" id="tip-content">请输入评论内容</div>
                <div class="fr discus_box">

                    <span class="cor888 comment_size" data-recommendNum-appId="com.trinitigame.callofminibulletdudes">137</span>
                    <a class="recommend" href="javascript:void(0);" data-recommend-appId="com.trinitigame.callofminibulletdudes">推荐</a>
                    <input type="submit" class="f_discuss" name="submit" id="submit" value=" 发表评论 " />
                </div>
            </form>
        </div>

        <div class="clr"></div>

        &lt;!&ndash; Comment templates start&ndash;&gt;
        <p style="display:none"><textarea id="Template-Comments" rows="0" cols="0">&lt;!&ndash;
    {#foreach $T.Comments as Item}
    <li>
        <div class="fl ky_user">
            <img src="/img/ky.jpg" />
            快用用户
        </div>
        <div class="fl ky_user_comment">
            <span class="time">{$T.Item.insertDate}</span>
            <span class="time ipath">ip:{$T.Item.ip}</span>
            <span class="time ipath">来源:{$T.Item.from}</span>
            <p class="c_content">{$T.Item.content}</p>
        </div>
        <div class="clr"></div>
    </li>
    {#/for}
    &ndash;&gt;</textarea></p>
        &lt;!&ndash; Comment templates end &ndash;&gt;

        <p class="all_comment_size">总共有<span id="commentTotal"></span>条评论</p>
        <div class="bl10"></div>

        <ul class="comment_box" id="Comments"></ul>
        <div class="clr"></div>
        <div class="page" id="pagination"></div>
        <div class="clr"></div>
        <div class="bl50"></div>-->
    </div>

    <div class="clr"></div>
</div>
<script type="text/javascript" src="/styles/izhu/js/jscroll.js"></script>

<div class="bottom">
    <div class="cetr">
        <div class="fl"><span class="fn14">爱助手 版权所有</span><br />
            IZHUSHOU.CN All Rights Reserved
            <br />
            沪ICP备13004666号-1 </div>
        <div class="fr">
            <ul class="conn_company">
                <li class="mail"><a style="display:block;" href="mailto:izhushou@163.com"><span></span>客服邮箱：izhushou@163.com</a></li>
                <li class="qq"><span></span>联系电话：021-54894966</li>
            </ul>
            　
        </div>
    </div>
</div>
    <script type="text/javascript">
            (function(){
                var _downTime_url,_startDown,_downTimer;
                $(".kybtn").livequery("click", function(){
                    _downTime_url=$(this).attr('data-historyurl');
                    $.ajax({
                        type: 'GET',
                        url: _downTime_url
                    });
                });
            })();
    </script>
</body>
</html>